<template>
  <div class="home">
    <h2>counter页面</h2>
    <h2>当前计数：{{ counterStore.doubleCounter }}</h2>
    <h2>当前计数+1：{{ counterStore.doubleCounterAddone }}</h2>
    <h2>查找到用户{{counterStore.getUserId(111)}}</h2>
    <h2>{{ counterStore.showMessage }}</h2>
  </div>
</template>

<script setup>
import { storeToRefs } from 'pinia'
import { toRefs } from 'vue'
import useCounter from '@/stores/counter'

const counterStore = useCounter()


</script>

<style scoped></style>